import request from '../../utils/request';

// banner列表
export function bannerList (params){
    return request({
        url:"/sys/banner/qryAllBanner.do",
        method: 'post',
        params: params
    });
};
// 新增 banner
export function addBanner (params){
    return request({
        url:"/sys/banner/add.do",
        method: 'post',
        data: params,
        headContype:true
    });
};
//编辑 banner
export function editBanner (params){
    return request({
        url:"/sys/banner/edit.do",
        method: 'post',
        data: params,
        headContype:true
    });
};
// 删除banner
export function deleteBanner (params){
    return request({
        url:"/sys/banner/delete.do",
        method: 'DELETE',
        params: params
    });
};
// 查询banner详情
export function queryBannerDetail (params){
    return request({
        url:"/sys/banner/getBannerDetail.do",
        method: 'get',
        params: params
    });
};